<?php

/**
 * 
 * @author ovo
 * This simple Form is used to edit a School to the database
 */

class Admin_Form_editschool extends Zend_Dojo_Form {
	
	public function __construct($options = null){
		
		parent::__construct($options);
		Zend_Dojo::enableForm($this);
		
		$id = new Zend_Form_Element_Hidden('id');
		//User enters his First Name
		$schoolName = new Zend_Dojo_Form_Element_ValidationTextBox('school');
		$schoolName->setLabel('School Name: ')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim')
		->addValidator('NotEmpty');
	
		$submit = new Zend_Dojo_Form_Element_SubmitButton('edit');
		$this->addElements(array($id, $schoolName, $submit));
		$this->setMethod('post');
	}
}